<?php
	/**
	* @author: trungdt
	* Change logs
	*/
	/**
	*  {formhelper_lang key='_fdsa' }
	*/

	function smarty_function_formhelper_lang($params, &$smarty)
	{
		//$smarty->trigger_error("paging: missing 'current_page' parameter");
		//isset($params['page_length']

		if (!isset($params['key']))
		{
			$smarty->trigger_error("formhelper_list: missing 'obj' parameter");
		}
		else
		{
			$key=trim($params['key']);
			if (( strlen($key) > 0) && (substr($key,0,1) == "_") && isset($smarty->_tpl_vars["_TR"][substr($key,1)]))
				return $smarty->_tpl_vars["_TR"][substr($key,1)];
			else
				return $key;
		}
	}
?>